Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 3 - Endpoints / Endpoints Reference
Constants and Data Types


The TUDErr Structure

The TUDErr structure points to information that explains why the OTSndUData function (page 3-101) has failed. You pass this structure as a parameter to the OTRcvUDErr function (page 3-103).

The TUDErr structure is defined by the TUDErr type.

struct TUDErr
   {  TNetbuf  addr;
      TNetbuf  opt;
      SInt32   error;
   };
typedef struct TUDErr TUDErr;
Field descriptions

addr
A TNetbuf structure that contains information about the destination address of the data sent using the OTSndUData function. The OTRcvUDErr function fills in this structure when the function returns. You must allocate a buffer to contain the address, initialize the addr.buf field to point to it, and set the addr.maxlen field to specify its maximum size.
opt
A TNetbuf structure that contains information about the options associated with the data sent using the OTSndUData function. The OTRcvUDErr function fills in this structure when the function returns. If you want to know this information, you must allocate a buffer to contain the option data, initialize the opt.buf field to point to it, and initialize the opt.maxlen field to specify the maximum size of the buffer. If you are not interested in option information, set the opt.len field to 0.
error
A long that, on return, specifies a protocol-dependent error code for the OTSndUData function that failed.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996